home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 13 - 1997 (partial) / 13.03 Mar 97 / Challenge Solution, Tangrams / Debug.h next >
Encoding:
C/C++ Source or Header  |  1996-12-08  |  356 b   |  26 lines  |  [TEXT/R*ch]

  1. #ifndef __DEBUG__
  2.  
  3.     #define __DEBUG__
  4.     
  5.     void _Assert(const Boolean condition, ConstStr255Param msg);
  6.  
  7.     void _MyError(ConstStr255Param msg);
  8.  
  9.     #ifdef DEBUG
  10.  
  11.         #define Assert(c, msg)  _Assert (c, msg);
  12.         #define MyError(msg)  _MyError (msg);
  13.     
  14.     #else
  15.     
  16.         #define Assert(c, msg) { /* Nothing */ }
  17.         #define MyError(msg)  ExitToShell();
  18.     
  19.     #endif
  20.  
  21. #endif
  22.  
  23.  
  24.  
  25.  
  26.